package com.emperor.receipt.app;

import java.util.Map;

import org.apache.log4j.Logger;

import com.emperor.core.app.App;
import com.emperor.core.app.AppConstant;
import com.emperor.core.app.AppCtrl;

public class ReceiptAppCtrl implements AppCtrl {
	public static final String RECEIPT_CTRL = "receipt.ctrl";
	public static final String RECEIPT_ENQ = "receipt.enq";
	public static final String RECEIPT_DEL = "receipt.del";
	
	public static final String RECEIPT_MSG = "receipt.msg";
	public static final String RECEIPT_ID = "receipt.id";
	
	public static Logger log = Logger.getLogger(ReceiptAppCtrl.class);
	@Override
	public void doProcess(Map<String, Object> params) {
		App app = null;
		if (params == null) {
			log.error("Param is null");
		} else {
			app = new ReceiptAppEnq(params);
		}
		
		if (app != null) {
			app.open();
		}
	}
}
